<template>
  <div class="flex diyKeyval">
    <el-input
      v-model.trim="data.key"
      clearable
      type="text"
      placeholder="字段:key"
    ></el-input>
    <el-input
      v-model.trim="data.val"
      clearable
      type="text"
      placeholder="字段:val"
    ></el-input>
  </div>
</template>

<script lang="ts" setup>
interface IProps {
  data: any;
}
defineProps<IProps>();
</script>

<style lang="scss" scoped>
.diyKeyval {
  .el-input:first-child {
    margin-right: 5px;
  }
}
</style>

